home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / compress / prexcm60.zip / MARKEXE.DOC < prev    next >
Text File  |  1996-08-01  |  5KB  |  146 lines

  1.                              
  2.                       MarkEXE v3.0 Protect! v6.0
  3.                      (C) 1993-1996 Jeremy Lilley
  4.                           All Rights Reserved
  5.  
  6.  
  7.  
  8.  
  9. INTRODUCTION:
  10. -------------
  11.  
  12.         MarkEXE is a simple  utility that  imbeds your copyright
  13. messages at the beginning of any normal EXE file. Simply specify
  14. the executable file  name and the file  containing the copyright
  15. message:
  16.  
  17.                 MarkEXE [ProgName[.EXE]] [Message.Msg]
  18.  
  19.   for example:  MarkEXE MyProg MyProg.Msg
  20.  
  21.         MarkEXE v3.0  was designed to be used with Protect!, but
  22. it can be used on  any normal DOS  executable file (it will work
  23. on a few larger files not  supported by Protect!, and it is even
  24. possible to use on  Windows and OS/2 executables  if you see the
  25. instructions below).  MarkEXE will place the message as close to
  26. the beginning of the  EXE as possible,  which is at byte 32 of a
  27. Protected exectuable. It will try to recover unused header space
  28. first to minimize the file's expansion. It is important that you
  29. run MarkEXE only  *after* and  not before running Protect!  on a
  30. file because Protect! removes MarkEXE messages.  Also, MarkEXE's 
  31. messages  will not be  Protected from  modification by  Protect! 
  32. because they are not loaded into memory when the file is run.
  33.  
  34.  
  35. EXAMPLE:
  36. ________
  37.  
  38.         The  message that  MarkEXE puts in  executable files is
  39. viewable from any command  or program that can look at the file
  40. itself, including the DOS TYPE command and other utilities such
  41. as DiskEdit:
  42.  
  43.                 C:\>TYPE MyProg.EXE
  44.  
  45.                         MyProg (C) 1996 John Doe Enterprises
  46.                         Please read MyProg.DOC for instructions.
  47.                                 John Doe Enterprises
  48.                                 123 Main Street
  49.                                 Anyplace, USA 12345
  50.                                 (123) 456-7890
  51.                                 jdoe@anynet.com
  52.  
  53.  
  54. SUGGESTIONS:
  55. ____________
  56.  
  57.         You may want to add an ANSI clear  screen command  (like
  58. ESC[2J)  at the  beginning  of the  file  to  clear the  display
  59.  
  60.  
  61.                                                                 Page 2
  62.  
  63.  
  64.  
  65. (because MarkEXE can't put the message  until after the first 32
  66. bytes, ridding the screen of garbage,  at least on ANSI systems,
  67. is a good idea).
  68.  
  69.         Also, the message file for MarkEXE is different from the 
  70. modification message file that is used in the registered version
  71. of Protect!,  but they could  conceivably be the  same or almost
  72. the same file.
  73.  
  74.  
  75. WINDOWS / OS/2 EXECUTABLES:
  76. ---------------------------
  77.  
  78.         If you write Windows or OS/2 programs, it is possible to 
  79. add a copyright message with MarkEXE even though  Protect! won't
  80. work on them.  DON'T just try to add the message to the EXE file
  81. (because that will cause problems and conflicts with many of the 
  82. pointers  of  the  Windows / OS/2 portion that  MarkEXE was  not
  83. designed to deal with).  What you need to do  is go back to your
  84. compiler and create a  .DEF file and include it in the program's
  85. project or make-file (if one doesn't already exist).  In the DEF 
  86. file, add a STUB statement:
  87.  
  88.                 STUB    'EXE_STUB.EXE'
  89.  
  90.         Now, create the EXE_STUB.EXE file  (name it whatever you
  91. want)  with a DOS compiler.  This STUB file  is what is executed
  92. when  you try to run a Windows program from DOS.  Normally,  the
  93. compiler defaults to a small program that tells  you to load the
  94. file from  Windows,  but with the STUB command,  you can specify
  95. your own message or even a DOS version of your program. Once you
  96. have created your own EXE_STUB.EXE,  you just use MarkEXE on it,
  97. compile/link  the  Windows  or  OS/2 executable,  and  your  new
  98. message  should appear at the  beginning of the  Windows or OS/2
  99. executable.
  100.  
  101.  
  102. LICENSING:
  103. __________
  104.  
  105.         This program must be distributed with  Protect! EXE/COM
  106. and be  used  under  the same  terms.  You must  register  this 
  107. package before distributing the finished EXE files.  In testing
  108. and using,  you agree  not to  hold the author  responsible for 
  109. damages that may result from the use or misuse of this program.
  110.  
  111.  
  112. CHANGES/PROBLEMS:
  113. _________________
  114.  
  115.         There have been very few changes from MarkEXE v3.0; 
  116. mostly minor changes to make it work better with Protect! v6.0.
  117.  
  118.      There is still the problem that if there is an arbitrary
  119. End Of File marker in the first 32 bytes of the EXE file, the
  120. message can't be displayed with the TYPE command. You can get
  121. around this by compressing or not compressing (i.e. changing the
  122.  
  123.  
  124.                                                                 Page 3
  125.  
  126.  
  127.  
  128. file size) in most cases. There is little that can be done inside        
  129. of MarkEXE for this.
  130.  
  131.  
  132.  
  133. CONTACT:
  134. ________
  135.  
  136.  
  137.           Jeremy Lilley
  138.           Protect! EXE/COM
  139.           2711 Oak View Circle
  140.           Medford, Oregon 97504
  141.           Email: jjlilley@mit.edu
  142.           Compuserve: 75060,2074
  143.           URL: http://web.mit.edu/jjlilley/www/protect.html
  144.  
  145.  
  146.